#pragma once


class WallDimJig : public AcEdJig

	// This class allows the user to create an ellipse by
	// picking its center point and then dragging to select the
	// desired major axis and minor axis lengths.  During the
	// drag operations, the user will be able to visually see
	// what the ellipse looks like at any time.
	//
{
public:
	WallDimJig(const AcGePoint3d& , const AcGePoint3d& , const CString&);
	BOOL doIt();
	virtual DragStatus sampler();
	virtual Adesk::Boolean update();
	virtual AcDbEntity* entity() const;

	AcDbObjectId GetPLineObjId()
	{
		return m_objPlineID;
	}

	AcDbObjectId GetTextObjId()
	{
		return m_objTextID;
	}
private:
	CString m_strNum;
	AcDbPolyline *mpEllipse;
	AcGePoint3d m_ptLine;
	AcGePoint3d m_ptFirst;
	AcGePoint3d m_ptSecond;

	AcDbObjectId m_objPlineID;
	AcDbObjectId m_objTextID;
};